Method Name | Method Parameters | Description |
| size | () | Return the number of elements (count) |
| get | (key) | Get (and return) the value associated with the parameter "key", or null if not found |
| put | (key, value) | Put param "value" at param "key" into this dictionary, replace if already present, otherwise add as new key-value association -- return previous value or null if no previous value |
| removeKey | (key) | Remove "key" from dictionary -- return previous value -- if key is not found throw runtime exception -- (see note below) |
| containsKey | (key) | Return true if this dictionary contains "key" (otherwise return false) |
| keys | () | Return list containing all keys (order of keys is not specified) - return type is a DynamicList |
| | | |
| getIfAbsentPut | (key, providerFct) | Get value at "key" -- if "key" is absent, then generate value using param "providerFct" -- return value |
| removeKeyIfAbsent | (key, supplierFct) | Remove "key" (association) -- return previous value -- if key is not found then return value from param "supplierFct" |
| | | |
| bucketCount | () | Optional method for hashed based classes that use "buckets" -- return the bucket count (i.e., the number of buckets) |